﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="model_add.aspx.cs" Inherits="EDP.Application.Web.BizModel.model_add" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <style type="text/css">
        .x-column-header {
            text-align: center;
        }
    </style>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="panel" runat="server" />
        <f:HiddenField ID="hide_ClassifyId" runat="server" />
        <f:Panel ID="panel" runat="server" ShowBorder="false" Margin="10 10 0 10" Layout="HBox">
            <Items>
                <f:SimpleForm ID="from" runat="server" Title="基本信息" MinWidth="300" BoxFlex="1" BodyPadding="10" Margin="0" LabelWidth="75" Layout="Column">
                    <Items>
                        <f:TriggerBox ID="tb_dllFile" runat="server" Label="程序集文件" BindName="AssemblyName" Margin="0" ColumnWidth="100%" TriggerIcon="Search" ShowRedStar="true"
                            OnTriggerClick="tb_dllFile_TriggerClick" OnTextChanged="tb_dllFile_TextChanged" />
                        <f:DropDownList ID="ddl_classifyList" runat="server" Label="所属分类" BindName="BizModelClassifyId" EnableSimulateTree="true" Margin="10 0 0 0" ColumnWidth="100%" ShowRedStar="true" />
                        <f:TextArea ID="tb_remark" runat="server" Label="备注" BindName="Remarks" Margin="10 0 0 0" ColumnWidth="100%" Height="200" />
                    </Items>
                </f:SimpleForm>
                <f:Grid ID="grid_List_model" runat="server" Title="业务模型列表" ShowHeader="true" Margin="0 0 0 5" MinWidth="500" BoxFlex="1" DataKeyNames="AssemblyName,ClassName,ClassFullName,Name" EnableCheckBoxSelect="true" AllowSorting="false" AllowPaging="false" AllowCellEditing="false"
                    OnPreRowDataBound="grid_List_model_PreDataBound">
                    <Columns>
                        <f:BoundField DataField="ClassName" ExpandUnusedSpace="true" HeaderText="类名称" />
                        <f:RenderField DataField="Name" ExpandUnusedSpace="true" FieldType="String" HeaderText="名称">
                            <Editor>
                                <f:TextBox ID="tb_classDesc" Required="true" runat="server" />
                            </Editor>
                        </f:RenderField>
                        <%--<f:LinkButtonField ColumnID="lb_model_delete" Width="30" CommandName="delete" EnableLock="true" CommandTitle="删除" ToolTip="删除" Icon="Delete" TextAlign="center" EnablePostBack="false" />--%>
                    </Columns>
                </f:Grid>
                <%--<f:Grid ID="grid_List_property" runat="server" Title="业务模型属性列表" ShowHeader="true" Margin="0 0 0 10" MinWidth="550" BoxFlex="1" DataKeyNames="Name,ClassFullName,Remarks" AllowSorting="false" AllowPaging="false" AllowCellEditing="true">
                    <Columns>
                        <f:BoundField DataField="ClassName" Width="200" HeaderText="类名称" />
                        <f:BoundField DataField="Name" Width="150" HeaderText="属性名" />
                        <f:RenderField DataField="Remarks" ExpandUnusedSpace="true" FieldType="String" HeaderText="名称">
                            <Editor>
                                <f:TextBox ID="tb_classDesc_pop" Required="true" runat="server" />
                            </Editor>
                        </f:RenderField>
                    </Columns>
                </f:Grid>--%>
            </Items>
            <Toolbars>
                <f:Toolbar runat="server" Position="Bottom" ToolbarAlign="Right">
                    <Items>
                        <f:Button ID="btn_save" runat="server" Text=" 保 存 " Icon="Disk" Margin="0 10 0 0"  OnClick="btn_save_Click"/>
                        <f:Button ID="btn_close" runat="server" Text=" 关 闭 " Icon="Cross" Margin="0" EnablePostBack="false" EnablePermission="false" />
                    </Items>
                </f:Toolbar>
            </Toolbars>
        </f:Panel>

        <f:Window ID="win_select" runat="server" />
    </form>
</body>
</html>
